//
// Created by wsc on 2023/8/15.
//

#ifndef YOLOV5_DATA_PROCESS_MAIN_WIDGET_C_H
#define YOLOV5_DATA_PROCESS_MAIN_WIDGET_C_H

#include "QtCore/QObject"
#include "main_widget.h"
#include "QtWidgets/QMainWindow"
#include "QtCore/QString"
#include "QtCore/QStringListModel"
#include "threads.h"
class Window : QMainWindow{
Q_OBJECT
public:
    Window();
    ~Window();

// data
public:
    Ui_MainWindow ui{};
    QStringListModel *list_model;
    ConvertThread *convert_thread = nullptr;


// init
private:
    void init_data();
    void init_widgets();
    void init_slots();

signals:
    void log_signal(QString);
    void progress_signal(int);

// slots
public slots:
    void add_dataset();
    void remove_dataset();
    void convert_dataset();
    void log(QString);
    void progress(int);
};


#endif //YOLOV5_DATA_PROCESS_MAIN_WIDGET_C_H
